package com.example.mntz.model;

import java.util.List;

public class TreeLayui <T> {
    /*节点标题*/
    private String title;
    /*索引值*/
    private String id;
    /*节点字段名*/
    private String field;
    /*子节点*/
    private List<T> children;
    /*节点是否初始展开*/
    private Boolean spread;
    /*节点是否初始为选中状态（如果开启复选框的话），默认 false*/
    private Boolean checked ;
    /*节点是否为禁用状态。默认 false*/
    private Boolean disabled ;

    @Override
    public String toString() {
        return "{" +
                "title:'" + title + '\'' +
                ", id:'" + id + '\'' +
                ", field:'" + field + '\'' +
                ", children:" + children +
                ", spread:'" + spread + '\'' +
                ", checked:'" + checked + '\'' +
                ", disabled:'" + disabled + '\'' +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }
}
